package com.knowif.pojo;

import javax.validation.constraints.NotEmpty;

import org.springframework.validation.annotation.Validated;

@Validated
public class UserEducationExperience {
    private Integer id;

    @NotEmpty(message = "学院信息不能为空")
    private String college;

    @NotEmpty(message="学校所在城市不能为空")
    private String schoolCity;

    @NotEmpty(message="学校名字不能为空")
    private String schoolName;

    private String schoolPic;

    @NotEmpty(message="学校简称不能为空")
    private String schoolShortName;

    @NotEmpty(message="专业不能为空")
    private String subject;

    /**
     * 学历等级
     */
    @NotEmpty(message="学历等级不能为空")
    private String academicLevel;

    private Integer userInfoId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college == null ? null : college.trim();
    }

    public String getSchoolCity() {
        return schoolCity;
    }

    public void setSchoolCity(String schoolCity) {
        this.schoolCity = schoolCity == null ? null : schoolCity.trim();
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName == null ? null : schoolName.trim();
    }

    public String getSchoolPic() {
        return schoolPic;
    }

    public void setSchoolPic(String schoolPic) {
        this.schoolPic = schoolPic == null ? null : schoolPic.trim();
    }

    public String getSchoolShortName() {
        return schoolShortName;
    }

    public void setSchoolShortName(String schoolShortName) {
        this.schoolShortName = schoolShortName == null ? null : schoolShortName.trim();
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject == null ? null : subject.trim();
    }

    public Integer getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Integer userInfoId) {
        this.userInfoId = userInfoId;
    }

    public String getAcademicLevel() {
        return academicLevel;
    }

    public void setAcademicLevel(String academicLevel) {
        this.academicLevel = academicLevel;
    }

    @Override
    public String toString() {
        return "UserEducationExperience{" +
                "id=" + id +
                ", college='" + college + '\'' +
                ", schoolCity='" + schoolCity + '\'' +
                ", schoolName='" + schoolName + '\'' +
                ", schoolPic='" + schoolPic + '\'' +
                ", schoolShortName='" + schoolShortName + '\'' +
                ", subject='" + subject + '\'' +
                ", academicLevel='" + academicLevel + '\'' +
                ", userInfoId=" + userInfoId +
                '}';
    }
}
















